home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000333_amos-request@svcs1.digex.net_Tue Sep 26 09:17:06 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  4KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id JAA18254;  for <mcox@access.digex.net> ; Tue, 26 Sep 1995 09:17:06 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id EAA09163 for amos-out; Tue, 26 Sep 1995 04:59:46 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id EAA09160 for <amos-list@svcs1.digex.net>; Tue, 26 Sep 1995 04:59:44 -0400
  4. Received: from wn1.sci.kun.nl (wn1.sci.kun.nl [131.174.8.1]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id EAA03883;  for <amos-list@access.digex.net> ; Tue, 26 Sep 1995 04:59:40 -0400
  5. Received: from mpih17 by wn1.sci.kun.nl via mpih17.mpi.nl [192.87.79.57] with ESMTP 
  6.     id JAA12523 (8.6.10/2.13) for <amos-list@access.digex.net>; Tue, 26 Sep 1995 09:59:32 +0100
  7. Received: by mpih17 (1.37.109.16/2.1) on MPINET
  8.      id AA085185859; Tue, 26 Sep 1995 09:57:39 +0100
  9. Date: Tue, 26 Sep 1995 09:57:39 +0100 (MET)
  10. From: Branko Collin <bcollin@mpi.nl>
  11. X-Sender: bcollin@mpih17
  12. To: Amos Discussion List <amos-list@access.digex.net>
  13. Subject: Re: Help me!
  14. In-Reply-To: <9509261223.AA001x9@paston.co.uk.uucp>
  15. Message-Id: <Pine.HPP.3.91.950926095107.8381B-100000@mpih17>
  16. Mime-Version: 1.0
  17. Content-Type: TEXT/PLAIN; charset=US-ASCII
  18. Status: RO
  19. X-Status: 
  20.  
  21. On Tue, 26 Sep 1995, Ben Wyatt wrote:
  22.  
  23. > Greetings M.Berionne@agora.stm.it, you wrote some text on the subject Help
  24. > me!, and now I'm going to answer it.
  25. > M> I have to solve a problem in AMOS Pro programming: is there anyone who can
  26. > M> help me??
  27. > M> I explain the problem.
  28. > M> I must (or better, I want to) do a procedure to draw on a screen a part of
  29. > M> 
  30. > M> a
  31. > M> circle. Is there any extension to do it??
  32. > M> Otherwise I have to use sin() and cos() function, but these are relly very
  33. > M> slow.
  34. > M> The procedure should be like:
  35. > M> 
  36. > M> Procedure PART_OF_CIRCLE[R,A,B]
  37. > M>      where R is the radius, A the value of the angle in degree
  38. > M>      and B is how many degrees the line is long
  39. > M>      (sorry for my English, can you understand me? :-(( )
  40. > M> End Proc
  41. > M> 
  42. > M> Unfortunately, becouse of all the structure of the program, the screen is
  43. > M> in
  44. > M> Hi resolution, but you have just to use R/2 in the sin() part.
  45. > M> But the biggest matter is that the 0 degree must be at 12 o'clock, 90
  46. > M> degrees at 3 o'clock and so on in clockwise (instead the trig functions
  47. > M> work
  48. > M> in the other direction.).
  49.  
  50. I missed the original message due to problems with our mail-system last 
  51. night, so I'll answer to this post. The answer is simple. Yes, there does 
  52. exist such a procedure, I wrote it, it's in the Procedure Library (v3.0 I 
  53. believe) which can be downloaded from Aminet or Andy's website. It's 
  54. called SimpleArc and the good part is that with bigger circles (i.e. an 
  55. arc with 360 degrees length) it is faster than the Amos 'Circle' command!
  56.  
  57. The trick I used to make it faster is to build the arc from lines instead 
  58. of single dots. If anyone feels like making it even faster, be my guest.
  59.  
  60. .......................................................................
  61. .       Branko Collin          .  'Heineken is een harddrugsdealer'   .
  62. .                              .                                      .
  63. .   //  u249026@vm.uci.kun.nl  .                       -Joop Visser   .
  64. . \X/   bcollin@mpi.nl         .                                      .
  65. .......................................................................
  66.